package com.atguigu.gmall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component  //这个组件和配置文件进行绑定，绑定规则是 @ConfigurationProperties 指定的
@ConfigurationProperties(prefix = "service.minio")  //配置文件绑定
@Data
public class AppMinioProperties {

    private String endpoint;
    private String  accessKey;
    private String accessSecret;
    private String bucket;

}
